<?php
import('RelationModel'); 
class userModel extends RelationModel {

	protected $_validate	= array(
		array('uname', 'require', '用户名不能为空'),
		array('uname', '', '该用户已存在', 0, 'unique', self::MODEL_INSERT),
	);
	
	protected $_auto		= array(
		//array('status', '1', self::MODEL_INSERT),
		//array('create_time', 'time', self::MODEL_INSERT, 'function'),
	);
	
	protected $_link		= array(
	
		'user_info'	=> array(
		    'mapping_type'	=> HAS_ONE,
			'foreign_key'	=> 'id',
			'mapping_name'	=> 'info',
		),
		
	);
}
?>